package opera1;

import book.Book;
import book.BookList;

public class ShowOperation implements IOperation {
    @Override
    public void doWork(BookList bookList) {
        int count = bookList.getUsedSize();
        for (int i = 0; i < count; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book.toString());
        }
    }
}
